# -*- coding:utf-8 -*-
import sys
import pygame

def check_events():
    """
    响应按键和鼠标事件
    """
    for evnet in pygame.event.get():
        if evnet.type == pygame.QUIT:
            sys.exit()

def update_screen(settings, screen, ship):
    """
    更新屏幕上的图像，
    """
    screen.fill(settings.bg_color)
    ship.blitme()

    pygame.display.flip()
